package com.zy.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zy
 * @version 1.0
 * @date 2021/2/13 16:00
 * @description
 * @modified
 */
@Controller
@RequestMapping("/hi")
public class HelloController {
    @RequestMapping("/say")
    public String say(Model model) {
        model.addAttribute("name","小明"); // 指定Model的值
        model.addAttribute("url","http://www.cnblogs.com/wormday/p/8435617.html"); // 指定Model的值
        return "say";
    }
}

